﻿@model MvcAuthSample.Models.LoginViewModel

@{
    ViewBag.Title = "用户登陆";
    Layout = "_Layout";
}

@*<h2>title</h2>*@

<div class="row">
    <div class="col-md-8">
        <section id="loginForm">
            <form asp-controller="account" asp-action="login" asp-route-ReturnUrl="@ViewData["ReturnUrl"]" method="post" class="form-horizontal" role="form">
                <h4>用户登陆</h4>
                <hr />
                <div asp-validation-summary="All" class="text-danger "></div>
                <div class="form-group">
                    <label asp-for="UserName" class="col-md-2 control-lable"></label>
                    <div class="col-md-10">
                        <input type="text" asp-for="UserName" class="form-control" required />
                        <span asp-balidation-for="UserName" class="text-danger"></span>
                    </div>
                </div>
                <div class="form-group">
                    <label asp-for="Password" class="col-md-2 control-lable"></label>
                    <div class="col-md-10">
                        <input type="text" asp-for="Password" class="form-control" required />
                        <span asp-balidation-for="Password" class="text-danger"></span>
                    </div>
                </div>


                <div class="form-group">

                    <div class="col-md-10 col-md-offset-2">
                        <input type="submit" value="登陆" class="btn btn-default" />           <a asp-action="register">注册</a>
                    </div>
                </div>
                <p>

                </p>
            </form>
        </section>
    </div>
</div>